home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / findw < prev    next >
Text File  |  2001-03-21  |  579b  |  24 lines

  1. Synopsis:
  2.    $findw(<word> <wordlist>)
  3.  
  4. Technical:
  5.    This function searches <wordlist> for <word> and returns the place it was
  6.    found. If <word> isn't in <wordlist>, -1 is returned.
  7.  
  8. Practical:
  9.    This function should put many scripters to ease, as it has been written
  10.    into many scripts :)
  11.  
  12. Returns:
  13.    index to <word> in <wordlist>
  14.  
  15. Examples:
  16.    $findw(very epic is a very scriptable client)         /* returns 3 */
  17.    
  18.    assign test blah hmm foo bar
  19.    eval echo $word($findw(hmm $test) $test)              /* returns "hmm" */
  20.    
  21. See Also:
  22.    word(6).
  23.  
  24.